import React, {PureComponent} from 'react'

import {DefaultPlayer as Video} from 'react-html5video';
import 'react-html5video/dist/styles.css';
import video from '../../../images/video.mp4'

class VideoPlayer extends PureComponent {
    constructor() {
        super()
    }

    render() {
        return (
            <div className="video-container">
                <Video autoPlay loop muted
                       controls={false}
                    // poster="http://sourceposter.jpg"
                       onCanPlayThrough={() => {
                           // Do stuff
                       }}>
                    <source src={video} type="	video/mp4"/>
                </Video>
            </div>
        )
    }
}

export default VideoPlayer
